/*=============================================================================
// File Name:   drv_gpio.h
// Author:      Wood Wang
// Date:        2022/10/1
// Version:     v1.0

=============================================================================*/

#ifndef __DRV_GPIO_H
#define __DRV_GPIO_H
/* Includes -----------------------------------------------------------------*/
#include "main.h"

/***********************************************************************************************************************
 * API
 **********************************************************************************************************************/
#if defined(__cplusplus)
extern "C" {
#endif

/*!
 * @brief Calls initialization functions.
 *
 */
#define IOCON_PIO_CLKDIV0       0x00u       /*!<@brief IOCONCLKDIV0 */
#define IOCON_PIO_HYS_EN        0x20u       /*!<@brief Enable hysteresis */
#define IOCON_PIO_I2CMODE_FAST  0x00u       /*!<@brief Standard/Fast mode */
#define IOCON_PIO_INV_DI        0x00u       /*!<@brief Input not invert */
#define IOCON_PIO_MODE_PULLUP   0x10u       /*!<@brief Selects pull-up function */
#define IOCON_PIO_OD_DI         0x00u       /*!<@brief Disables Open-drain function */
#define IOCON_PIO_SMODE_BYPASS  0x00u       /*!<@brief Bypass input filter */


void  drv_gpio_init(void);



#if defined(__cplusplus)
}
#endif

/*!
 * @}
 */
#endif  //__DRV_GPIO_H

